package com.fjec.im.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 004.系统消息表
 * </p>
 *
 * @author admin
 * @since 2020-10-20
 */
@Data
@TableName(value = "biz_system_message", autoResultMap = true)
public class BizSystemMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 消息类型
     */
    @TableField("MsgType")
    private Integer msgType;

    /**
     * 业务类型
     */
    @TableField("BizType")
    private Integer bizType;

    /**
     * 业务数据
     */
    @TableField(value = "BizData", typeHandler = JacksonTypeHandler.class)
    private Map<String, String> bizData;

    /**
     * 接收人Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 消息标题
     */
    @TableField("Title")
    private String title;

    /**
     * 消息内容
     */
    @TableField("Content")
    private String content;

    /**
     * 延迟时间
     */
    @TableField("DelayTime")
    private LocalDateTime delayTime;

    /**
     * 是否已读
     */
    @TableField("Readed")
    private Integer readed;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;


}
